export default {
  setResturantNameByAsync: function(context, payload) {
    let _this = payload._this
    //执行异步操作
    _this.axios.post(_this.axios.urls.SYS_VUEX_EDIT, {
      resturantName: payload.resturantName
    }).then((response) => {
      console.log('callback............');
      let resturantName = response.data.result;
      context.commit('setResturantName', {
        resturantName: resturantName
      }); //Action提交的是mutation
    })
    console.log('xxxxxxxxxxxxxxx');
  }
};
